#ifndef SIGNAL_H
#define SIGNAL_H

#include "Thread.h"
#include "History.h" 
#include "Device.h"
#include <string>

class Signal : public Thread
{
public:
	Signal(string name, Device* pDevice, int f = 40);
	void setFrequency(int freq);
	string getName();
	History* getHistory();
	int getFrequency();
	int getSleepTime();
	void run();

private:
	void update();

	string _name;
	Device* _pInput;
	History _history;
	int _time;
	int _frequency;
	int _sleeptime;
	Reading _reading;
};

#endif
